<template>
	<view class="p20">
		<form-list ref="form" :list="list"></form-list>
		<view class="h80"></view>
		<u-button type="warning" ripple @click="submit">提交</u-button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
					formName: '反馈内容：',
					name: '反馈内容',
					type: 'textarea',
					field: 'content',
					labelPosition:'top',
					inputAlign:'left',
					required:true,
					rightIcon:false
				}, {
					name: '姓名',
					field: 'name',
					required:true
				}, {
					name: '手机号',
					type: 'number',
					maxlength: 11,
					field: 'mobile',
					required:true
				}]
			};
		},
		methods: {
			submit() {
				let form = this.$refs.form.submit()
				if(!form)return
				this.$request('/master/my/feedback', form).then(res => {
					this.$msg(res.msg)
					this.$navBack(1,1000)
				})
			}
		}

	}
</script>

<style lang="scss">

</style>
